HTML (HyperText Markup Language) is the standard markup language for documents designed to be displayed in a web browser. It defines the structure of web content and is one of the cornerstone technologies of the World Wide Web.
HTML uses a system of tags and attributes to define elements within a document. These elements label pieces of content such as "this is a heading," "this is a paragraph," "this is a link," etc.
Tim Berners-Lee invented HTML while working at CERN to facilitate sharing research documents.
The first publicly available HTML documentation was released with 18 elements.
The first standardized HTML specification was published by the IETF.
W3C recommendation introduced support for stylesheets and scripting.
HTML5 was published as a W3C Recommendation, introducing semantic elements and multimedia support.
Every HTML document follows a basic structure that includes the following elements:
HTML provides a wide variety of tags for different purposes. Here are some of the most commonly used ones:
| Tag | Description | Example |
|---|---|---|
| <h1> to <h6> | Headings of different levels | <h1>Main Title</h1> |
| <p> | Paragraph | <p>This is a paragraph</p> |
| <a> | Anchor (hyperlink) | <a href="url">Link</a> |
| <img> | Image | <img src="image.jpg" alt="Description"> |
| <ul> and <li> | Unordered list and list items | <ul><li>Item</li></ul> |
| <div> | Division or section | <div>Content here</div> |
Here's a simple example of an HTML document with basic elements:
HTML continues to evolve with new specifications and features. The future of HTML includes:
As web technologies advance, HTML will continue to be the foundation upon which the digital world is built.